package com.litch.mvpdemo.presenter.impl;

import com.litch.mvpdemo.model.PhoneByAddModel;
import com.litch.mvpdemo.model.entity.PhoneByAdd;
import com.litch.mvpdemo.model.impl.PBAModelImpl;
import com.litch.mvpdemo.presenter.PhoneByAddPre;
import com.litch.mvpdemo.view.PhoneByAddView;

/**
 * Created by Administrator on 2016/7/11.
 */
public class PhoneByAddPreImpl implements PhoneByAddPre,PBAModelImpl.ModelCallBack{
    private PhoneByAddView view;
    private PhoneByAddModel impl;
    public PhoneByAddPreImpl(PhoneByAddView view){
        this.view = view;
        this.impl = new PBAModelImpl();
    }
    @Override
    public void getAdd(String phone) {
        impl.loadPhoneByAdd(phone,this);
    }

    @Override
    public void onOk(PhoneByAdd add) {

    }
}
